package com.itheima.localdatetime;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

/**
 * @Author 王加鑫
 * @Date 2021/5/12 9:44
 * @Version 1.0
 */
public class LocalDateTimeTest {

    public static void main(String[] args) {
        LocalDateTime localDateTime = LocalDateTime.of(2021, 5, 12, 9, 45, 10);
        System.out.println(localDateTime);

        LocalDate localDate = LocalDate.of(2012, 11, 11);
        System.out.println(localDate);

        LocalTime localTime = LocalTime.of(9, 48, 45);
        System.out.println(localTime );
    }
}
